cmake_minimum_required(VERSION 3.10)

include_directories(./)
include_directories(/opt/homebrew/Cellar/sdl2/2.30.11/include/)

# 查找 SDL2 库
find_package(SDL2 REQUIRED)

file(GLOB SOURCE_FILES "*.c")
add_library(sdl_lcd STATIC ${SOURCE_FILES})

# 链接 SDL2 库
target_link_libraries(sdl_lcd PRIVATE SDL2::SDL2)